﻿
Imports LibMultiPlug.Core.Plugins.Interfaces

Namespace Implementation

    Public Class MainPlug
        Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1


        Public Const C_NAME As String = "Kostenübersicht"
        Private _environment As LibMultiPlug.Core.Plugins.PluginEnvironment
        Private Const C_PLUG_KEY As String = "kue_main_plug"


#Region "IPlugV1 Implementation"

        Public Sub Action() Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.Action

        End Sub

        Public ReadOnly Property ActionText As String Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.ActionText
            Get
                Return C_NAME
            End Get
        End Property

        Public ReadOnly Property Children As System.Collections.Generic.List(Of LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1) Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.Children
            Get
                Return New List(Of IPlugChildV1)({New Funktionen.Buchungen.BuchungMainPlug(_environment), _
                                                  New Funktionen.Vertraege.VertragMainPlug(_environment)})
            End Get
        End Property

        Public ReadOnly Property Description As String Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.Description
            Get

            End Get
        End Property

        Public ReadOnly Property Icon As System.Drawing.Bitmap Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.Icon
            Get

            End Get
        End Property

        Public ReadOnly Property Name As String Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.Name
            Get
                Return C_NAME
            End Get
        End Property

        Public ReadOnly Property ToolStrip As System.Windows.Forms.ToolStrip Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.ToolStrip
            Get

            End Get
        End Property

        Public ReadOnly Property Transaktion As String Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.Transaktion
            Get

            End Get
        End Property

        Public Sub Initialize(ByVal environment As LibMultiPlug.Core.Plugins.PluginEnvironment) Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1.Initialize
            _environment = environment
            KUeLib.Data.ServiceManager.GetInstance()
        End Sub

        Public Event Initialized(ByVal sender As LibMultiPlug.Core.Plugins.Interfaces.IPlugV1) Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1.Initialized

        Public Event InitializeFailed(ByVal sender As LibMultiPlug.Core.Plugins.Interfaces.IPlugV1, ByVal message As String) Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1.InitializeFailed

        Public Sub Install() Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1.Install

        End Sub

        Public Property IsInitialized As Boolean Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1.IsInitialized
            Get

            End Get
            Set(ByVal value As Boolean)

            End Set
        End Property

        Public ReadOnly Property IsInstalled As Boolean Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1.IsInstalled
            Get

            End Get
        End Property

        Public ReadOnly Property Version As Short() Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugV1.Version
            Get

            End Get
        End Property

#End Region

        Public Sub StartTransaction(ByVal args() As String) Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.StartTransaction

        End Sub

        Public ReadOnly Property Key As String Implements LibMultiPlug.Core.Plugins.Interfaces.IPlugChildV1.Key
            Get
                Return C_PLUG_KEY
            End Get
        End Property
    End Class

End Namespace